package com.kangfu.db.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;

public class MedicalRecord {

    //`id` int(10) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
    //`user_id` int(10) NOT NULL DEFAULT 0 COMMENT 'user.id',
    //`title` varchar(255) NOT NULL DEFAULT '' COMMENT '标题',
    //`description` varchar(1000) NOT NULL DEFAULT '' COMMENT '摘要',
    //`treat_time` datetime DEFAULT NULL COMMENT '就诊时间',
    //`del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
    //`create_by` varchar(64) DEFAULT '' COMMENT '创建者',
    //`create_time` datetime DEFAULT NULL COMMENT '创建时间',
    //`update_by` varchar(64) DEFAULT '' COMMENT '更新者',
    //`update_time` datetime DEFAULT NULL COMMENT '更新时间',
    //`remark` varchar(500) DEFAULT NULL COMMENT '备注',

    private Integer id;

    private Integer userId;

    private String title;

    private String description;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime treatTime;

    /** 删除标志(0代表存在 2代表删除) */
    private String delFlag;

    /** 创建者 */
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /** 更新者 */
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /** 备注 */
    private String remark;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public LocalDateTime getTreatTime() {
        return treatTime;
    }

    public void setTreatTime(LocalDateTime treatTime) {
        this.treatTime = treatTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
